package com.sxit.myproscenium.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxit.myproscenium.system.entity.Category;
import com.sxit.myproscenium.system.mapper.CategoryMapper;
import com.sxit.myproscenium.system.service.ICategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务实现类
 *
 * @author wcn
 * @since 2022-04-10
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category>
    implements ICategoryService {

  @Override
  public List<Category> getCategories() {
    return baseMapper.getCategories();
  }

  @Override
  public List<Category> getAllCategoryList() {
    return baseMapper.getAllCategoryList();
  }

  @Override
  public List<Category> getCategoriesByMyself() {
    return baseMapper.getCategoriesByMyself();
  }
}
